package com.huilian.iotbox.admin.wap.service.impl;

import com.huilian.iotbox.admin.wap.dao.DeviceAnnualFeeRecordItemDao;
import com.huilian.iotbox.admin.wap.service.DeviceAnnualFeeRecordItemService;
import com.huilian.iotbox.data.po.DeviceAnnualFeeRecordItem;
import com.huilian.iotbox.data.vo.DeviceAnnualFeeRecordItemVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: loong
 * @create: 2024-06-26 09:38
 **/
@Service
public class DeviceAnnualFeeRecordItemServiceImpl implements DeviceAnnualFeeRecordItemService {
    @Resource
    private DeviceAnnualFeeRecordItemDao deviceAnnualFeeRecordItemDao;

    @Override
    public void add(DeviceAnnualFeeRecordItem deviceAnnualFeeRecordItem) {
        deviceAnnualFeeRecordItemDao.add(deviceAnnualFeeRecordItem);
    }

    @Override
    public List<DeviceAnnualFeeRecordItemVo> findByDeviceAnnualFeeRecordId(Integer annualFeeRecordId) {
        return deviceAnnualFeeRecordItemDao.findByDeviceAnnualFeeRecordId(annualFeeRecordId);
    }
}
